<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('index')}">分类管理</a></li>
			<li><a href="{:url('add')}">添加分类</a></li>
		</ul>
		<form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>分类名称</th>
						<th>描述</th>
						<th width="180">操作</th>
					</tr>
				</thead>
				<tbody>
				    <foreach name="cates" item="vo">
				    <tr>
						<td width="50">{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.description}</td>
						<td width="180"> 
						<a href="{:url('edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a href="{:url('delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
				<tfoot>
					<tr>
						<th width="50">ID</th>
						<th>分类名称</th>
						<th>描述</th>
						<th width="180">操作</th>
					</tr>
				</tfoot>
			</table>

		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>